package com.atguigu.srb.core.controller;


import com.atguigu.srb.core.pojo.entity.UserAccount;
import com.atguigu.srb.core.service.UserAccountService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户登录记录表 前端控制器
 * </p>
 *
 * @author TieZhu
 * @since 2021-06-10
 */
@RestController
@RequestMapping("/userLoginRecord")
public class UserLoginRecordController {
    @Resource
    private UserAccountService accountService;

    @GetMapping("/findAll")
    public List<UserAccount> findAll(){
        List<UserAccount> userAccountList = accountService.list();
        return userAccountList;
    }
}

